jQuery(document).ready(function(){
	return ;
	var accessToken = window.localStorage? localStorage.getItem("accessToken"): Cookie.read("accessToken");	
	if(accessToken !='' && accessToken !=null){
		alert(accessToken);
	}else{
		if(code !='' && code !=null){
			 new Buffalo(buffaloEndPoint).remoteCall("WeiBoUtil.getAccessTokenByCode", [code], function(reply) {
				  accessToken=reply.getResult();
				  //保存accessToken
				  if (window.localStorage) {
					    localStorage.setItem("accessToken", accessToken);
					} else {
					  //  Cookie.write("accessToken", accessToken);
					}
				 
		      });
		}
	}
	
	 //获取statusWapper
	  new Buffalo(buffaloEndPoint).remoteCall("WeiBoUtil.getFriendsTimeline", [accessToken], function(reply) {
		  var statusWapper=reply.getResult();
		  alert(statusWapper);
	  });
	
	/**
	jQuery('#formPage').live('pagebeforeshow', function(){
		jQuery("input[type='radio']:first").attr("checked",true).checkboxradio("refresh");
		
		jQuery("input[type='checkbox']:first").attr("checked",true).checkboxradio("refresh");
		
		var myselect = jQuery('select#select-choice-1');
		myselect[0].selectedIndex = 1;
		myselect.selectmenu('refresh');
		
		jQuery("input[type='range']:first").val('40').slider("refresh");
		
		var myswitch = jQuery('select#slider');
		myswitch[0].selectedIndex = 1;
		myswitch.slider('refresh');
		
	});
	**/
});


var mid;
var repostMsg='';

jQuery('a.weibo_content').live('click', function(e) {
	var obj=e.currentTarget;
	mid =jQuery(obj).find('p').eq(2).html();
	repostMsg="//@"+jQuery(obj).find('h3').eq(0).html()+":"+jQuery(obj).find('p').eq(1).html();
});

jQuery('#write_comment').live('pagebeforeshow', function(e) {
	jQuery('#write_comment').find('#mid').val(mid);
});
jQuery('#repost').live('pagebeforeshow', function(e) {
	jQuery('#repost').find('#mid').val(mid);
	jQuery('#repost').find('#comments').val(repostMsg);
});


function updateStatus_form_onSubmit(){
	if(jQuery('#updateStatus_form').find('#comments').val()==''){
		alert('请输入微博内容');
		return ;
	}
	jQuery('#updateStatus_form')[0].submit();
}